package response

import "time"

var (
	response map[string]interface{}
)

func Response(code int64, msg string, data interface{}) map[string]interface{} {
	response = make(map[string]interface{})

	response["code"] = code
	response["msg"] = msg
	response["time"] = time.Now().Format("2006-01-02 15:04:05")
	response["data"] = data
	return response
}
